﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework;

namespace Urbania.Utilities
{
    public static class SpriteBatchExtension
    {
            public static void Draw(this SpriteBatch sb, Animation sprite, Vector2 position, Color color)
            {
                sb.Draw(sprite.SpriteSheet, position, sprite.CurrentFrameBounds, color);
            }
            public static void Draw (this SpriteBatch sb, Animation sprite, Vector2 position, 
                Color color, Single rotation, Vector2 origin, Single scale, SpriteEffects effects, Single layer)
            {
                sb.Draw(sprite.SpriteSheet, position, sprite.CurrentFrameBounds,
                    color, rotation, origin, scale, effects, layer);
            }
    }
}
